<template>
  <view class="main-view">
    <view class="card flex-d-c" @click="toPage('/pages/office/manage/manage')">
      <image class="square-58" src="@/static/images/mine/z-icon-1.png" />
      <text class="m-t8 text-500-130">职位管理</text>
    </view>
    <view
      class="card flex-d-c"
      @click="toPage('/pages/office/resumefav/resumefav')"
    >
      <image class="square-58" src="@/static/images/mine/z-icon-2.png" />
      <text class="m-t8 text-500-130">简历收藏</text>
    </view>
    <!-- <view class="card flex-d-c" @click="toPage('/pages/office/letter-list/letter-list')">
      <image class="square-58" src="@/static/images/mine/z-icon-3.png" />
      <text class="m-t8 text-500-130">推荐信</text>
    </view> -->
    <view
      class="card flex-d-c"
      @click="toPage('/pages/office/employment/employment')"
    >
      <image class="square-58" src="@/static/images/mine/z-icon-4.png" />
      <text class="m-t8 text-500-130">入职情况</text>
    </view>
    <view class="card flex-d-c" @click="toPage('/pages_site/pages/home/home')">
      <image class="square-58" src="@/static/images/mine/z-icon-5.png" />
      <text class="m-t8 text-500-130">设置</text>
    </view>
    <button open-type="contact" session-from="sessionFrom" class="kefu">
      <view class="card flex-d-c">
        <image class="square-58" src="@/static/images/mine/z-icon-6.png" />
        <text class="m-t8 text-500-130">意见反馈</text>
      </view>
    </button>
    <view class="card flex-d-c" @click="toPage('/pages/user/firm/firm-edit')">
      <image class="square-58" src="@/static/images/mine/z-icon-5.png" />
      <text class="m-t8 text-500-130">编辑企业信息</text>
    </view>
  </view>
</template>

<script lang="ts" setup>
const toPage = (url: string) => {
  uni.navigateTo({ url });
};
</script>

<style lang="scss" scoped>
.kefu {
  background-color: transparent;
  padding: 0;
  text-align: left;
  line-height: normal;
  margin: 0;

  &::after {
    display: none;
  }
}

.main-view {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  height: 500rpx;
  margin: 0 24rpx;
  margin-top: -40rpx;
  padding: 32rpx 24rpx;
  border-radius: 10rpx;
  background-color: $bg-color-1;
}

.card {
  width: 316rpx;
  height: 150rpx;
  margin-bottom: 20rpx;
  border-radius: 10rpx;
  border: 1rpx solid #c9c9c9;
}
</style>
